import Http from './axios'

export const getList = () => {
  return Http.request({
    url: '/home/getData',
    method: 'get'
  })
}
export const getUser = (params) => {
  return Http.request({
    url: '/user/getUser',
    method: 'get',
    params
  })
}
export const addUser = (data) => {
  return Http.request({
    url: '/user/addUser',
    method: 'post',
    data
  })
}
export const editUser = (data) => {
  return Http.request({
    url: '/user/editUser',
    method: 'post',
    data
  })
}
export const delUser = (data) => {
  return Http.request({
    url: '/user/delUser',
    method: 'post',
    data
  })
}


export const getMenu = (data) => {
  return Http.request({
    url: '/permission/getMenu',
    method: 'post',
    data
  })
}